import os,json

app_dist={
    "HOST": "127.0.0.1",
    "PORT": 3306,
    "USER": "root",
    "PASSWORD": "123456",
    "DATABASE": "jiayou",
    "BACKUPID":"127.0.0.1",
    "LASTBACKUPTIME":"2024-03-04_10-16-15",
    'Version':'0.001',
    'ZJReportPath':r'\\user00001\扫描报告',
    'sqlFilePath':r'\\user00001\首营资料勿删\jiayou.db'
    # 'sqlFilePath':r'D:\天翼云盘下载\jiayou\backup_folder\jiayou.db',
    # 'ZJReportPath':r"G:\zhijianbao"
}
app_dist['defaultReportStyles']={
    '产品信息':{
        '总报表':'',
        '子报表':''

    },
    '质量标准':{
        '总报表':'',
        '子报表':''

    },
    '资料打印':{
        '总报表':'',
        '子报表':'',
        '质量标准默认打印机':'',
        '质检报告默认打印机':'',
        '标签默认打印机':'',

    },
}
basePath=os.path.dirname((os.path.dirname(os.path.dirname(__file__))))
app_info={}
with open(os.path.join(basePath,'my.json'),'r',encoding='utf8') as fp:
    json_data = json.load(fp)
#     # print('这是文件中的json数据：',json_data)
#     # print('这是读取到文件数据的数据类型：', type(json_data))
#自动更新
app_dist.update(json_data)
basefileNames= [] #[[文件名称,文件路径]]
